<template>
    <ElTable class="list-table is-border" height="720" :="$attrs" border :data="list">
        <ElTableColumn label="服务日期" prop="date" align="center"></ElTableColumn>
        <ElTableColumn label="店铺名称" prop="dpmc" align="center"></ElTableColumn>
        <ElTableColumn label="数据账号" prop="sjzh" align="center"></ElTableColumn>
        <ElTableColumn label="子账号名称" prop="zzhmc" align="center"></ElTableColumn>
        <ElTableColumn label="服务班次" prop="fwbcName" align="center"></ElTableColumn>
        <ElTableColumn label="服务类型" prop="fwlxName" align="center"></ElTableColumn>
        <ElTableColumn label="店铺平台" prop="dpptName" align="center"></ElTableColumn>
        <ElTableColumn prop="_action" label="操作" fixed="right" :min-width="90" header-align="center" align="center">
            <template #default="{ row }">
                <ElButton type="primary" link @click="$emit('openSjLr', row)">录入数据</ElButton>
                <ElButton type="primary" link>当天不检测</ElButton>
                <ElButton type="primary" link>永远不检测</ElButton>
            </template>
        </ElTableColumn>
    </ElTable>
</template>

<script setup lang="ts">
import { ElTableColumn } from 'element-plus';
import { computed } from 'vue'

interface Props {
    data?: any[],
}

const props = withDefaults(defineProps<Props>(), {
    data: () => []
})

const list = computed(() => {
    let l = props.data;
    return l;
})
</script>